#ifndef GAMEWINDOW3_H
#define GAMEWINDOW3_H

#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QProgressBar>
#include <QMovie>
#include <QSoundEffect>
#include <QPainter>

class GameWindow3 :public QWidget{
    Q_OBJECT;

    public:
        explicit GameWindow3(QWidget *parent = nullptr);
        ~GameWindow3();
        void closeEvent(QCloseEvent *event) override;

    protected:
        void paintEvent(QPaintEvent *event) override;  // 画符咒
        void mousePressEvent(QMouseEvent *event) override; // 触摸水面

    private slots:
        void showWishFox();
        void showWishRabbit();
        void updatePower();  // 神力值变化

    private:
        QLabel *fountainLabel;  // 喷泉动画
        QLabel *foxLabel, *rabbitLabel;  // 小动物
        QPushButton *foxButton, *rabbitButton;  // 互动按钮
        QProgressBar *powerBar;  // 神力值
        QMovie *fountainMovie;
        QMovie *foxMovie;
        QMovie *rabbitMovie;
        int powerValue;  // 神力值
signals:
    void gameWindow3Closed();
};


#endif // GAMEWINDOW3_H
